//
//  CodeVerifyVC.m
//  Shuaiche
//
//  Created by zzs on 2018/4/11.
//  Copyright © 2018年 zzs. All rights reserved.
//

#import "CodeVerifyVC.h"

@implementation CodeVerifyVC

- (IBAction)startVerifyCode:(id)sender {
    if([self.delegate respondsToSelector:@selector(verifyCode:)]){
        [self.delegate verifyCode:self.codeTextField.text];
    }
}

- (void)awakeFromNib{
    [super awakeFromNib];
    self.textContainerView.layer.cornerRadius = 4.f;
    self.textContainerView.clipsToBounds = YES;
    self.textContainerView.layer.borderColor = [UIColor colorWithRed:234/255. green:234/255. blue:234/255. alpha:1.].CGColor;
    self.textContainerView.layer.borderWidth = 1.f;
}

- (IBAction)closeBtnClicked:(id)sender {
    if([self.delegate respondsToSelector:@selector(closeVerifyView)]){
        [self.delegate closeVerifyView];
    }
}

- (IBAction)refreshBtnClicked:(id)sender {
    if([self.delegate respondsToSelector:@selector(refreshCodeNumber)]){
        [self.delegate refreshCodeNumber];
    }
}
@end
